﻿using System;
using System.Linq;
using System.Data.Entity;

namespace MiniSched.Orm.Abstractions {
    
    public class DatabaseAbstraction {

        protected DatabaseAbstraction() { }

        public static DatabaseAbstraction Default { get { return _Default; } }
        private static readonly DatabaseAbstraction _Default = new DatabaseAbstraction();

        public virtual void SetInitializer<TContext>(IDatabaseInitializer<TContext> strategy) where TContext : DbContext {
            Database.SetInitializer<TContext>(strategy);
        }
    }
}
